package com.huangliusong.desigin.principle.openclose;

/**
 * @author huangliusong
 * @since 2018/10/8
 * {@link }
 */
public class Test {
    public static void main(String[] args) {
        ICourse javaCourse=new JavaDiscountCourse(96,"java",100.00);
        JavaDiscountCourse javaDiscountCourse=(JavaDiscountCourse)javaCourse;
        System.out.println("原价："+javaDiscountCourse.getOrginPrice());
        System.out.println("折后价："+javaCourse.getPrice());

    }
}
